import { App, Component } from 'vue';
import SvgIcon from './SvgIcon/index.vue';
import Pagination from './Pagination/index.vue';

interface Components {
    [key: string]: Component
}

const globalComponent: Components = { SvgIcon, Pagination }
export default {
    install(app: App) {
        Object.keys(globalComponent).forEach((key: string) => {
            app.component(key, globalComponent[key]);
        })
    }
}